﻿
<h1>Промени активност</h1>

<script type="text/javascript" src="<?= base_url('ckeditor/ckeditor.js') ?>"></script>

<?php echo form_open_multipart('adminActivities/processActivities/'.$act->idActPk); ?>
<table>
	<tr>
		<td>Наслов:</td>
		<td><input type="text" name="title" id="title" value="<?= $act->title; ?>" /></td>
	</tr>
	<tr>
		<td>Јазик:</td>
		<td><select id="lang" name="lang">
			<option value="mk" <?php if ($act->language == 'mk') echo 'selected'; ?>>Македонски</option>
			<option value="en" <?php if ($act->language == 'en') echo 'selected'; ?>>English</option>
		</select></td>
	</tr>
	<tr>
		<td>Од датум:(mm/dd/yyyy)</td>
		<td><input type="text" name="dateFrom" id="dateFrom" size="20" value="<?= date("d/m/Y",strtotime($act->dateFrom)); ?>" /></td>
	</tr>
	<tr>
		<td>До датум (mm/dd/yyyy):</td>
		<td><input type="text" name="dateTo" id="dateTo" size="20" value="<?= date("d/m/Y",strtotime($act->dateTo)); ?>" /></td>
	</tr>
	<tr>
		<td>Содржина:</td>
		<td><textarea class="ckeditor" name="content" id="content" cols="40" rows="10"><?= $act->content; ?></textarea></td>
	</tr>
	<tr>
		<td><input type="hidden" name="tip" id="tip" value="2" /></td>
		<td><input type="submit" name="submit" id="submit" value="Внеси" /></td>
	</tr>
</table>
<?php echo form_close(); ?>